<?php
header("Content-type:text/html;charset=utf-8");
$a=!empty($_GET['act'])?$_GET['act']:"index";
switch ($a){
    //查询
    case "index":
        include 'view/artical/index.php';
        break;
    //添加
    case "add":
        include 'view/artical/add.php';
        break;
    //删除
    case 'delete':
        include 'view/artical/delete.php';
        break;
    //修改
    case 'update':
        include 'view/artical/update.php';
        break;
    default:
        echo '出错了';
}